package com.yzs.core.utils

import androidx.annotation.StringRes
import com.blankj.utilcode.util.ToastUtils

/**
 *  author : yzs
 *  date   : 2022/1/14 17:19
 *  desc   : 提供给上层的 toast
 *
 */
class ToastUtils {
    companion object {
        fun showShort(@StringRes resId: Int) {
            ToastUtils.showShort(resId)
        }

        fun showShort(msg: String?) {
            ToastUtils.showShort(msg ?: "")
        }

        fun showLong(@StringRes resId: Int) {
            ToastUtils.showShort(resId)
        }

        fun showLong(msg: String?) {
            ToastUtils.showLong(msg ?: "")
        }
    }
}